<!DOCTYPE html>
<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form th:action="@{/users/updateUsers}" method="post">
    <input type="hidden" name="id" th:value="${users.id}">
    姓名：<input type="text" name="nam" th:value="${users.nam}"/><br/>
    密码：<input th:value="${users.pwd}" type="text" name="pwd"/><br/>
    <!--性别：<input th:value="${users.sex}==0?'女':'男'" type="text" name="sex"/><br/>-->
    性别：<input type="radio" name="sex" th:field="${users.sex}" th:value="1"/>女
    <input type="radio" name="sex" th:field="${users.sex}" th:value="0"/>男<br/>
    生日：<input th:value="${#dates.format(users.birth,'yyyy-MM-dd')}" type="text" name="birth"/><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>
